package main

import (
	"fmt"
    "myPkg"
)

var s string

func main() {
    defer func() {
        fmt.Println("执行defer")
    }()
    fmt.Println("执行main函数")
    fmt.Println(s)

    fmt.Println("调用myPkg.PkgName()")
    myPkg.PkgName()

    return
}
func init() {
    s = "hello world\n"
    fmt.Println("执行main文件中init函数")
}